﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kotonoha.Server.Objects.Model;
using Kotonoha.Server.Utils;

namespace Kotonoha.Server.UI.BadCards {
    public class BadWordProxy {

        private readonly Word word;

        public BadWordProxy(Word word) {
            this.word = word;
        }

        public string Writing {
            get { return word.Writing; }
        }

        public string Reading {
            get { return word.Reading; }
        }

        public string Translations {
            get { return word.Translations.Combine(" / "); }
        }

        public IList<Example> Examples {
            get { return word.Examples; }
        }

        public double Cost { get; set; }

        public int Index { get; set; }

        public string Info {
            get {
                return string.Format("#{0}, ({1:F2}", Index, Cost);
            }
        }
    }
}
